package com.baichen.eventloop;

public class TargetRunnable implements Runnable {

    private final Runnable target;

    private final int index;

    public TargetRunnable(Runnable target, int index) {
        this.target = target;
        this.index = index;
    }

    public int getIndex() {
        return index;
    }

    @Override
    public void run() {
        target.run();
    }
}
